/**
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import '~/styles/variables';

.container {
  height: 100%;
  position: relative;
  width: 100%;

  .posterContainer {
    height: 100%;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    transition: all 0.2s ease-in-out;
    width: 100%;
    z-index: 10;

    .poster {
      object-fit: cover;
      width: 100%;
    }
  }

  iframe {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }

  .playButton {
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease-in-out;
    z-index: 100;

    svg {
      transition: all 0.2s ease-in-out;

      path {
        fill: $tennis;
      }
    }

    &:hover {
      .default {
        opacity: 0;
      }
      .hover {
        opacity: 1;
      }
    }

    .hover {
      height: 100%;
      left: 0;
      opacity: 0;
      position: absolute;
      top: 0;
      width: 100%;
    }
  }

  .hidden {
    cursor: default;
    opacity: 0;
  }

  .visible {
    opacity: 1;
  }
}
